package com.jnzc.ocr.serv.shop.service;

import com.jnzc.ocr.common.bean.Tree;
import com.jnzc.ocr.serv.shop.entity.ShopGoodsSku;
import com.jnzc.ocr.serv.shop.entity.ShopProductAttr;
import com.jnzc.ocr.serv.shop.entity.ShopProductSku;
import com.jnzc.ocr.serv.shop.filter.ShopGoodsSkuFilter;
import com.jnzc.ocr.dependencies.serv.mybatis.MybatisService;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017-10-06
 */
public interface ShopGoodsSkuService extends MybatisService<ShopGoodsSku, ShopGoodsSkuFilter> {

    ShopGoodsSku find(Long id, Long productId, Long shopId);

    List<ShopGoodsSku> list(Long productId, Long shopId);

    List<ShopGoodsSku> listWithAttr(Long productId, Long shopId, List<Tree<ShopProductAttr>> attrTree);
}
